package com.yxym.extend_.improve;

import com.yxym.extend_.Graduate;
import com.yxym.extend_.Pupil;

public class Extends01 {
    public static void main(String[] args) {
        com.yxym.extend_.Pupil pupil = new Pupil();
        pupil.age = 10;
        pupil.name = "d";
        pupil.setScore(60.0);
        pupil.showInfo();
        com.yxym.extend_.Graduate graduate = new Graduate();
        graduate.age = 20;
        graduate.name = "s";
        graduate.setScore(85.0);
        graduate.showInfo();
    }
}